$(function(){
	$().ready(function(){
		layer.msg('欢迎来到唐春的工作分享页面！');
			});
	// $("#select").click(function() {
	// 	select();
	// });
	// $("#yonghu").on("click",function(){
	// 	layer.msg('请输入用户名和密码！');
	// });
	$("body>div:nth-of-type(3)>div>div:nth-of-type(1)").bind({
		mouseover:function(){
			$("body>div:nth-of-type(2)>div>div:nth-of-type(1)").css({"background":"#00469C","color":"#E50069"});
			$("body>div:nth-of-type(3)>div>div:nth-of-type(2)").css("visibility","hidden");
			$("body>div:nth-of-type(3)>div>div:nth-of-type(3)").css("visibility","hidden");
			$(this).css({"font-size":"2rem","background":"#0874B2"})
		},
		mouseout:function(){
			$("body>div:nth-of-type(2)>div>div:nth-of-type(1)").css({"background":"#00A1E9","color":"#FFF000"});
			$("body>div:nth-of-type(3)>div>div:nth-of-type(2)").css("visibility","visible");
			$("body>div:nth-of-type(3)>div>div:nth-of-type(3)").css("visibility","visible");
			$(this).css({"font-size":"1rem","background":"#0186D1"})
		}
	});
	$("body>div:nth-of-type(3)>div>div:nth-of-type(2)").bind({
		mouseover:function(){
			$("body>div:nth-of-type(2)>div>div:nth-of-type(2)").css({"background":"#00469C","color":"#E50069"});
			$("body>div:nth-of-type(3)>div>div:nth-of-type(1)").css("visibility","hidden");
			$("body>div:nth-of-type(3)>div>div:nth-of-type(3)").css("visibility","hidden");
			$(this).css({"font-size":"2rem","background":"#0874B2"});
			$("div #zainali").css({"display":"inline-block"});
			$("div #wenzi").css({"display":"inline-block","margin-left":"3rem"});
		},
		mouseout:function(){
			$("body>div:nth-of-type(2)>div>div:nth-of-type(2)").css({"background":"#00A1E9","color":"#FFF000"});
			$("body>div:nth-of-type(3)>div>div:nth-of-type(1)").css("visibility","visible");
			$("body>div:nth-of-type(3)>div>div:nth-of-type(3)").css("visibility","visible");
			$(this).css({"font-size":"1rem","background":"#0186D1"});
			$("div #zainali").css({"display":"inline"});
			$("div #wenzi").css({"display":"inline","margin-left":"0rem"});
		}
	});
	$("body>div:nth-of-type(3)>div>div:nth-of-type(3)").bind({
		mouseover:function(){
			$("body>div:nth-of-type(2)>div>div:nth-of-type(3)").css({"background":"#00469C","color":"#E50069"});
			$("body>div:nth-of-type(3)>div>div:nth-of-type(2)").css("visibility","hidden");
			$("body>div:nth-of-type(3)>div>div:nth-of-type(1)").css("visibility","hidden");
			$(this).css({"font-size":"2rem","background":"#0874B2"});
			$("div #zainali").css({"display":"inline-block"});
			$("div #wenzi").css({"display":"inline-block","margin-left":"3rem"});
		},
		mouseout:function(){
			$("body>div:nth-of-type(2)>div>div:nth-of-type(3)").css({"background":"#00A1E9","color":"#FFF000"});
			$("body>div:nth-of-type(3)>div>div:nth-of-type(2)").css("visibility","visible");
			$("body>div:nth-of-type(3)>div>div:nth-of-type(1)").css("visibility","visible");
			$(this).css({"font-size":"1rem","background":"#0186D1"});
			$("div #zainali").css({"display":"inline"});
			$("div #wenzi").css({"display":"inline","margin-left":"0rem"});
		}
	});
	$("#right").on("click",function(){
		layer.msg('下一周的班列信息！');
	});
	//上一页
	$("#upPage").click(function() {layer.msg('后续增加！');
		var pageIndex = $("#pageIndex").html();
		var pageCount = $("#pageCount").html();
		pageIndex = parseInt(pageIndex);
		pageCount = parseInt(pageCount);
		pageIndex--;
		if (pageIndex > 0) {
			$("#pageIndex").html(pageIndex);
			layer.msg('后续增加！');
		}
	});
	//下一页
	$("#downPage").click(function() {layer.msg('后续增加！');
		var pageIndex = $("#pageIndex").html();
		var pageCount = $("#pageCount").html();
		pageIndex = parseInt(pageIndex);
		pageCount = parseInt(pageCount);
		pageIndex++;
		if (pageIndex <= pageCount) {
			$("#pageIndex").html(pageIndex);
			layer.msg('后续增加！');
		}
	});
});